import { WeaTools } from 'ecCom';

// 获取列表数据  showname,descript
export const getData = params => WeaTools.callApi('/api/odocExchange/exchangeField/getList', 'POST', params);
// 新增字段 修改字段  id,showname,xml_name,descript,showorder
export const addFiled = params => WeaTools.callApi('/api/odocExchange/exchangeField/save', 'POST', params);
// 获取新增和修改表单内容:
export const tableContent = params => WeaTools.callApi('/api/odocExchange/exchangeField/getFormItems', 'POST', params);
// 获取查询条件:
export const getSearchCondion = params => WeaTools.callApi(' /api/odocExchange/exchangeField/getSearchConditionItems', 'POST', params);
// 获取一条数据:   params:  id
export const getOne = params => WeaTools.callApi('/api/odocExchange/exchangeField/getOne', 'POST', params);
// 删除:  ids以逗号隔开  如：1,2,21
export const deleteList = params => WeaTools.callApi(' /api/odocExchange/exchangeField/delete', 'POST', params);
// 封存:   ids以逗号隔开  如：1,2,21
export const onSeal = params => WeaTools.callApi('/api/odocExchange/exchangeField/seal', 'POST', params);
// 解封:   ids
export const onUnseal = params => WeaTools.callApi('/api/odocExchange/exchangeField/unseal', 'POST', params);

